package com.myLearning.creatingpattern.factoryabs.section1;

public class AssemblyLine {

    public static void main(String[] args) {

        Factory1 factory1 = new Factory1();
        Factory2 factory2 = new Factory2();

        AbstractProductA productA1 = factory1.createProductA();
        AbstractProductA productA2 = factory2.createProductA();

        AbstractProdcutB productB1 = factory1.createProductB();
        AbstractProdcutB productB2 = factory2.createProductB();

        productA1.doSomething();

        productA2.doSomething();

        productB1.doSomething();

        productB2.doSomething();

    }

}
